import * as echarts from 'echarts'
import {TitleComponent, TooltipComponent, GridComponent, DatasetComponent, TransformComponent} from "echarts/components"
import {BarChart, LineChart} from "echarts/charts"
import {LabelLayout, UniversalTransition} from "echarts/features"
import {CanvasRenderer} from "echarts/renderers"

const UseComponent: any[] = [TitleComponent, TooltipComponent, GridComponent, DatasetComponent, TransformComponent, BarChart, LabelLayout, UniversalTransition, CanvasRenderer, LineChart]

echarts.use(UseComponent)